package com.lrs.java.j2se_self.collection;

import java.util.*;
public class TestGenegic {
	public static void main(String[] args){
		List<String> c = new ArrayList<String> ();
		c.add("sfadfsfa");
		c.add("sffdasdf");
		c.add("dsffasddfs");
		for(int i=0;i<c.size();i++){
			String s = c.get(i);
			System.out.println(s);
		}
		
		Collection<String> cc = new HashSet<String> ();
		cc.add("123");
		cc.add("456");
		cc.add("789");
		for(Iterator<String> i=cc.iterator();i.hasNext();){
			String ss = i.next();
			System.out.println(ss);
		}
	}
}
